import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:flutter/material.dart';

// white radius 30 text blue 16
class NormalFloatTextWhiteButton extends StatelessWidget {
  final String title;
  final VoidCallback onTap;

  const NormalFloatTextWhiteButton({Key key, this.title, this.onTap})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return PressedColorButton(
      onPressed: onTap,
      pressedColor: aceBlueColor.withAlpha(0xF1),
      child: SizedBox(
        width: getDp(109),
        child: Center(
          child: Text(
            title,
            style: TextStyle(
              color: aceBlueColor,
              fontSize: getSp(16),
              fontWeight: FontWeight.w700,
              height: 20 / 16,
            ),
          ),
        ),
      ),
      borderRadius: BorderRadius.circular(getDp(30)),
      color: Colors.white,
      boxShadow: [
        BoxShadow(
          color: Colors.black.withOpacity(0.25),
          offset: Offset(0, 4),
          blurRadius: 3,
        )
      ],
      padding: EdgeInsets.symmetric(
        vertical: getDp(12),
      ),
    );
  }
}
